/*
 * Copyright (c) 2018 - 2028. www.vtuzx.com Inc. All Rights Reserved
 */

package com.vtuzx.kingdee.xqc_batch;

import com.vtuzx.batch.VtuzxBatchHolder;
import com.vtuzx.core.utils.VtuzxUtil;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

/**
 * batch系统入口
 */
@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@ComponentScan(basePackages = {
        "com.vtuzx.kingdee.xqc_batch",
        "com.vtuzx.kingdee.xqc_core",
        "com.vtuzx.batch"
})
public class BatchApplication {
    public static void main(String[] args) {
        if (args == null || args.length == 0 || VtuzxUtil.isEmpty(args[0])) {
            System.exit(9);
        }
        VtuzxBatchHolder.instance().execute(BatchApplication.class, args);
    }
}
